﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/QLDAOL.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    ListPage
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <link href="../../Content/project.css" rel="stylesheet" type="text/css" />
    <%var _getlstPJ = ViewData["lstPJ"] as IEnumerable<QLDAOL.Models.PROJECT>; %>
    <%var _getlstPJLang = ViewData["lstPJLanguage"] as IEnumerable<QLDAOL.Models.DM_PROJECT_LANGUAGE>; %>
    <div id="content" class="pjpage nonpad">
        <div class="left_content">
        </div>
        <div class="main_content">
            <div class="top_search">
                <div class="icon_topleft">
                    <img src="../../Content/images/project-portal_logo.png" class="img_topleft" />
                </div>
                <form action="" method="get">
                <div id="search_form" class="marginA_B10">
                    <input type="text" id="txt_searchpj" name="pjName" class="marginA5" />
                    <input type="submit" id="btn_searchpj" class="marginA5 button" value="Search Project" />
                </div>
                </form>
            </div>
            <div class="sidebar_left black_sb paddingTB20">
                <div id="project_type_select_sb" class="block sb_pjtype ">
                    <%if (_getlstPJLang != null) foreach (var getlstPJLang in _getlstPJLang)
                          {%>
                    <div class="block">
                        <%=Html.ActionLink(getlstPJLang.PJ_Language, "ListPage", "Project", new { pjName = "", pjLang = getlstPJLang.ID },null)%>
                    </div>
                    <%} %>
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="content_page_right nonpad">
                <div class="detail">
                    <div class="detail_top">
                        <div class="detail_title">
                            Danh sách Project</div>
                    </div>
                    <div class="detail_content">
                        <%if (_getlstPJ != null)
                          {
                              var i = 1; foreach (var PJ in _getlstPJ)
                              { %>
                        <div <%if(i==_getlstPJ.Count()){%> class="block lst_pj_item black_sb paddingLR10 paddingTB20 noborder "
                            <%} %> <%else{%> class="block lst_pj_item black_sb paddingLR10 paddingTB20 "
                            <%} %>>
                            <div class="block pj_title">
                                <%=Html.ActionLink(PJ.ProjectName, "ProjectPage", "Project", new {ID_PJ= PJ.ID}, null)%>
                            </div>
                            <div class="block pj_note">
                                Creator:
                                <%=PJ.USER.UserName %>
                                <div class="fr">
                                    [<%=PJ.Date_Created %>]</div>
                            </div>
                            <div class="block pj_note">
                                Type:
                                <%=PJ.DM_PROJECT_TYPE.Type %>
                                <div class="fr">
                                    Language:
                                    <%=PJ.DM_PROJECT_LANGUAGE.PJ_Language%></div>
                            </div>
                            <div class="block pj_des ">
                                <%=PJ.Description%>
                            </div>
                        </div>
                        <%i++;
                      }
                          }%>
                    </div>
                    <div class="detail_bot">
                    </div>
                </div>
            </div>
        </div>
        <div class="right_content">
        </div>
    </div>
</asp:Content>
